/**
 * com.monte.test.model.Mess.java
 * create by FengMy from 2013
 */
package com.monte.test.model;

import java.math.BigDecimal;
import java.util.Date;
import java.util.List;

import javax.persistence.CascadeType;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.OneToMany;

import com.monte.entity.CoreEntity;

/**
 * @描述:
 * @author FengMy
 */
@Entity(name="T_TE_MESS")
public class Mess extends CoreEntity {
	private static final long serialVersionUID = 4832953673400648401L;
	
	/**
	 * 姓名
	 */
	@Column(name="FNAME",length=80,insertable=true,updatable=true)
	private String name;
	
	/**
	 * 创建时间
	 */
	@Column(name="FCREATETIME",nullable=false)
	private Date createTime;
	
	/**
	 * 年龄
	 */
	@Column(name="FAGE",scale=0)
	private BigDecimal age;
	
	/**
	 * 性别
	 */
	@Column(name="FGENDER")
	private Integer gender;
	
	/**
	 * 详细
	 */
	@OneToMany(cascade={CascadeType.ALL},mappedBy="mess")
	private List<MessContent> content;

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	public BigDecimal getAge() {
		return age;
	}

	public void setAge(BigDecimal age) {
		this.age = age;
	}

	public Integer getGender() {
		return gender;
	}

	public void setGender(Integer gender) {
		this.gender = gender;
	}

	public void setContent(List<MessContent> content) {
		this.content = content;
	}

	public List<MessContent> getContent() {
		return content;
	}
}
